package com.zmzncs.lmtc.module.promotion.pojo.month_rule;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author 高博文
 * @Date 2020/11/19 16:16
 */
@Data
public class MonthRuleNameForm {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "页码")
    @NotNull
    private Integer page;

    @ApiModelProperty(value = "每页记录数")
    @NotNull
    private Integer size;

    @ApiModelProperty(value = "规则名称")
    private String ruleName;

    public void setSize(Integer size) {
        if (size == null){
            this.size = 0;
        } else {
            this.size = size;
        }
    }

    public void setPage(Integer page) {
        if (page == null){
            this.page = 10;
        } else {
            this.page = page;
        }
    }
}
